//
//  LF_Wifi_Tool.h
//  OTDR
//
//  Created by Liu on 2024/5/18.
//

#import <Foundation/Foundation.h>
///wifi网络框架
#import <NetworkExtension/NetworkExtension.h>


NS_ASSUME_NONNULL_BEGIN

@interface LF_Wifi_Tool : NSObject
///wifi是否开启
+ (BOOL)isWiFiEnabled;
/// 打开wifi设置界面
+ (void)openWiFiSetting;
///获取当前连接的wifi信息
+ (NSDictionary *)getCurrentConnectionWiFiInfo;
///获取wifi列表
+ (NSMutableArray *)getWiFiList;

///连接指定WiFi
/// @param cmd 命令
/// @param network 网络
/// @param password wifi密码
+ (void)connectWiFiforCmd:(NEHotspotHelperCommand *)cmd network:(NEHotspotNetwork *)network  password:(NSString *)password;

///断开指定WiFi
+ (void)disconnectWiFiforCmd:(NEHotspotHelperCommand *)cmd network:(NEHotspotNetwork *)network  password:(NSString *)password;

+ (NSString *)getWiFiName;


@end

NS_ASSUME_NONNULL_END
